package com.wwinsoft.oa.service.terminal;

import org.activiti.engine.impl.pvm.delegate.ActivityExecution;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author: Tim Chen
 * @since 1.0
 */
@Service
@Transactional
public class TerminalManager {

    @Autowired
    private TerminalService terminalService ;

    public void archiveTerminalMaintain(ActivityExecution execution){
        String processBusinessKey = execution.getProcessBusinessKey();
        terminalService.archiveTerminalMaintain(Long.valueOf(processBusinessKey));
    }
}
